package com.black.cat.jvm.rtda.heap.constantpool;

import com.black.cat.jvm.classfile.constantpool.impl.ConstantInfoClass;

/**
 * @Author blackcat
 * @create 2021/8/14 13:30
 * @version: 1.0
 * @description:
 */
public class ClassRef extends SymRef {


    public static ClassRef newClassRef(RunTimeConstantPool runTimeConstantPool, ConstantInfoClass classInfo) {
        ClassRef ref = new ClassRef();
        ref.runTimeConstantPool = runTimeConstantPool;
        ref.className = classInfo.getValue();
        return ref;
    }

}
